<template>
  <div class="top">
    <!-- 头部导航栏 -->
    <!-- <div class="top" v-show="this.navshow"> -->
    <span class="left">
      <!-- <van-icon name="wap-nav" /> -->
      <slot name="left"></slot>
    </span>
    <!-- <div class="calendarbox1">
        <span>09月11日</span>
        <slot name="calendarbox1"></slot>
      </div> -->
      <div class="calendarbox1">
      <slot name="calendarbox1"></slot>
      <!-- <span>10月01日</span>
        <p>周三 11:28 (7天前)</p> -->
    </div>
    <div class="calendarbox2">
      <slot name="calendarbox2"></slot>
      <!-- <span>10月01日</span>
        <p>周三 11:28 (7天前)</p> -->
    </div>
    <span class="right">
      <!-- <van-icon name="search" /> -->
      <slot name="right"></slot>
    </span>
  </div>
</template>

<script>
export default {
  data () {
    return {
      show: false,
      checked: false,
      searchshow: false,
      navshow: true,
      searchValue: ''
    }
  }
}
</script>

<style lang="less" scoped>
.top {
  background-color: #fff;
  height: 60px;
  width: 100%;
  position: fixed;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  .left {
    font-size: 25px;
    padding-left: 22px;
    padding-top: 20px;
    z-index: 999;
    // position: fixed;
    // top: 0;
    // left: 0;
    .icon {
      font-size: 14px;
      width: 25px;
      height: 25px;
      display: block;
    }
  }
  .calendar {
    display: flex;
    font-size: 18px;
    align-items: center;
    .van-icon {
      margin-left: 5px;
    }
  }
  .right {
    font-size: 25px;
    padding-right: 22px;
    padding-top: 20px;
    z-index: 999;
    z /deep/.van-icon-search:before {
      font-weight: 600;
    }
    .icon {
      font-size: 14px;
      width: 25px;
      height: 25px;
      display: block;
    }
  }
  .calendarbox1 {
    display: flex;
    align-items: center;
    flex-direction: column;
    position: absolute;
    left: 50%;
    top: 16px;
    transform: translate(-50%, 15%);
    span {
      font-size: 14px;
    }
  }
  .calendarbox2 {
    display: flex;
    align-items: center;
    flex-direction: column;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 15%);
    span {
      font-size: 14px;
    }
    p {
      font-size: 12px;
      color: #969799;
    }
  }
}
</style>
